const accountInfo = wx.getAccountInfoSync()

const envVersion = accountInfo.miniProgram.envVersion

const config = {
  baseUrl:'http://192.168.43.52:9200/branch_gateway/mini/invoice',
}

if(envVersion === 'develop'){
  // 开发
  config.baseUrl = 'http://192.168.43.52:9200/branch_gateway/mini/invoice'
}else if(envVersion === 'trial'){
  // 体验
  config.baseUrl = 'http://192.168.43.52:9200/branch_gateway/mini/invoice'
}else {
  // 正式
  config.baseUrl = 'http://192.168.43.52:9200/branch_gateway/mini/invoice'
}

module.exports = config